package com.eaoa.uc.busorder.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.bus.BusOrderDAO;
import com.eaoa.vo.bus.BusOrder;

public class BusOrderDeleteBO extends EABaseBusinessObject{
	
	private static BusOrderDAO orderDAO = new BusOrderDAO();
	private Long orderno;
	
	
	public BusOrderDeleteBO(Long orderno) {
		super();
		this.orderno = orderno;
	}
	protected void performBusinessLogic() {
		BusOrder po =  (BusOrder)orderDAO.loadAndLock(orderno);
		po.setIslock("Y");
		orderDAO.update(po);
	}
}